<?php
if(isset($_GET["id"])){
	$partner=Mage::getModel('marketplaceprofile/marketplaceprofile')->getPartnerProfileById($_GET["id"]);
	if(count($partner)<10){ $this->_redirect('/error'); }
?>	
<style>
	.main{background-image:none;background-color:<?php echo $partner['backgroundth'];?>;}
</style>
<h1><?php echo Mage::helper('marketplacepartner')->__('Partner profile page') ?></h1>
<?php
} else{ echo Mage::helper('marketplacepartner')->__('Invalid profile'); }
?>
<img class="bannerpic" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).'avatar/'.$partner['bannerpic']; ?>" />
